﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Combat/Combat.master" AutoEventWireup="true" CodeFile="BaseItemNew.aspx.cs" Inherits="Combat_BaseItemNew" StylesheetTheme="Content" %>

<%@ Register src="../UserContral/ListPageContral.ascx" tagname="ListPageContral" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table  style="width:100%;" cellpadding="0" cellspacing="0" class="intable" >
    <caption><span>技能分类设置</span></caption>
        <tr>
            <td>
                上级分类：</td>
            <td style="width:90%">
                <asp:DropDownList ID="ddlItemID" Width="405" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                分类名称：</td>
            <td>
                <asp:TextBox ID="txtItemName" Width="400" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                分类别名：</td>
            <td>
                <asp:TextBox ID="txtalisItemName" Width="400" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:Button ID="btnOK" runat="server" Text="添加" onclick="btnOK_Click" />
                <asp:Label ID="lblPrompt" runat="server" Text=""></asp:Label>
            </td>
        </tr>
    </table>
    <asp:GridView ID="gvItemList" Caption="<span>顶级技能分类</span>" runat="server" 
        onrowdatabound="gvItemList_RowDataBound">
        <Columns>
              <asp:TemplateField HeaderText="序号">
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle Width="30px" />
                <ItemTemplate>
                    <asp:Label ID="ID" runat="server" ForeColor="#666666"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
              <asp:TemplateField HeaderText="分类名称">                 
                  <ItemTemplate>
                      <%#Eval("ItemSkillName") %>
                  </ItemTemplate>
                  <HeaderStyle HorizontalAlign="Left" />
              </asp:TemplateField>
              <asp:TemplateField HeaderText="分类别名">                
                  <ItemTemplate>
                  <%#Eval("AlisSkillName")%>                      
                  </ItemTemplate>
                  <HeaderStyle HorizontalAlign="Left" />
              </asp:TemplateField>
            <asp:TemplateField>
                <ItemTemplate> 
                    <asp:LinkButton ID="lnbtnModify" CommandArgument='<%# Eval("ID") %>'  runat="server" 
                        oncommand="lnbtnModify_Command">修改</asp:LinkButton>
                    <asp:LinkButton ID="lnbtnDelete" CommandArgument='<%# Eval("ID") %>' 
                        OnClientClick="return confirm('确定要删除此记录吗？')" runat="server" 
                        oncommand="lnbtnDelete_Command">删除</asp:LinkButton>                    
                </ItemTemplate>
                <ItemStyle Width="9%" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <uc1:ListPageContral ID="ListPageContral1" OnPageSizeChange="ListPageContral1_PageSizeChange"  PageSize="20" runat="server" />
</asp:Content>

